//
//  ITRemindManager.h
//  Water
//
//  Created by seven on 2020/8/9.
//  Copyright © 2020 seven. All rights reserved.
//

#import <Foundation/Foundation.h>

#define APPFirstCheckNotification @"APPFirstCheckNotification"

NS_ASSUME_NONNULL_BEGIN
#define LocalPushShowedAlertView @"LocalPushShowedAlertView"

@interface ITRemindManager : NSObject
+ (instancetype)shareManager;

/**
 *  将App事件添加到系统日历提醒事项，实现闹铃提醒的功能
 *
 *  @param title      事件标题
 *  @param location   事件位置
 *  @param startDate  开始时间
 *  @param endDate    结束时间
 *  @param allDay     是否全天
 *  @param alarmArray 闹钟集合
 */
- (void)createEventCalendarTitle:(NSString *)title
                        location:(NSString *)location
                       startDate:(NSDate *)startDate
                         endDate:(NSDate *)endDate
                          allDay:(BOOL)allDay
                      alarmArray:(NSArray *)alarmArray;


- (void)addLocalNoticeWithDate:(NSDate *)date
                         title:(NSString *)title
                       content:(NSString *)content
                    identifier:(NSString *)identifier
                      userInfo:(NSDictionary *)userInfo
                        repeat:(BOOL)repeat;



- (void)addLocalPush;
- (void)removeLocalPush;

#pragma mark - UserNotification

- (void)checkUserNotificationPermission:(void(^)(BOOL isOn))callback;

- (void)checkUserNotificationEnable:(BOOL)showAlert callBack:(void(^)(BOOL isOn))callback;

@end

NS_ASSUME_NONNULL_END
